import request from '@/utils/request'
// 获取基础销售属性列表
export const getBaseSaleAttrList = () => {
  return request.get(`/admin/product/baseSaleAttrList`)
}
// 删除spu的
export const deleteSpu = (spuId) => {
  return request.delete(`/admin/product/deleteSpu/${spuId}`)
}
// 更改spu信息
export const saveSpuInfo = (spu) => {
  return request.post(`/admin/product/${spu.id ? 'updateSpuInfo' : 'saveSpuInfo'}`,
    spu)
}
// 获取咱们spu列表数据(分页)
export const getPageList = (page, limit, category3Id) => {
  return request.get(`/admin/product/${page}/${limit}?category3Id=${category3Id}`)
}
